import com.syn.config.SynFactoryBean;
import com.syn.entity.A;
import com.syn.entity.B;
import com.syn.entity.User;
import com.syn.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestApplication {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext annotationConfigApplicationContext=new AnnotationConfigApplicationContext(Application.class);
       // A user = annotationConfigApplicationContext.getBean("user", A.class);
        UserService userService = annotationConfigApplicationContext.getBean("userService", UserService.class);
        userService.getById(11);

    }
}
